package com.borrowed.book.user.service;

import com.borrowed.book.user.domain.SUser;
import com.borrowed.book.user.domain.SelectUserDto;
import com.borrowed.book.user.domain.SelectUserInDto;

import java.util.List;

public interface SUserService {
    /**
     * 根据用户名查询用户信息
     * @param username
     * @return
     */
    SUser selectUserByLoginName(String username,String password);


    /**
     * 根据openId查询用户信息
     */
    SUser selectUserByOpenId(String openId);
    /**
     * 用户一览查询
     */
    List<SelectUserDto>  selectUserList(SelectUserInDto inDto) throws IllegalAccessException;
    /**
     * 用户更新
     */
    void updateUser(SUser user);
}
